package com.baizhi.entity;

public class Title {
    int id;
    String title;
    String text;
    String date;
    String KeyWord;
    int likeCount;
    String name;
    public Title(int id, String title, String text, String date, String KeyWord, int likeCount, String name){
        this.id = id;
        this.title = title;
        this.text = text;
        this.date = date;
        this.KeyWord = KeyWord;
        this.likeCount = likeCount;
        this.name = name;
    }
    public Title(){}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getKeyWord() {
        return KeyWord;
    }

    public void setKeyWord(String keyWord) {
        KeyWord = keyWord;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public String getName() { return name; }

    public void setName(String name) { this.name = name; }

    @Override
    public String toString() {
        return "Title{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", text='" + text + '\'' +
                ", date='" + date + '\'' +
                ", KeyWord='" + KeyWord + '\'' +
                ", likeCount='" + likeCount + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
